;var utils = (function(){
    var obj =  {
        cookie : {
            get:function(name){
                var arr = document.cookie.split(';');
                for(var i=0;i<arr.length;i++){
                    var arr2 = arr[i].split('=');

                    if(arr2[0]==name){
                        return arr2[1];
                    }
                }

                return '';
            },
            set:function(name,value,iDay){
                var oDate = new Date();
                oDate.setDate(oDate.getDate()+iDay);
                document.cookie = name+"="+value+";expires="+oDate;
            },
            remove:function(name){
                this.set(name,1,-1);
            }
        }
    };

    return obj;
})();